//
//  PictureCell.m
//  EconomyDemo
//
//  Created by qianfeng01 on 15-7-6.
//  Copyright (c) 2015年 xiangmu. All rights reserved.
//

#import "PictureCell.h"
#import "UIImageView+WebCache.h"
@implementation PictureCell

- (void)awakeFromNib {
    
    self.ImageView.layer.masksToBounds=YES;
    self.ImageView.layer.cornerRadius=8;
}

-(void)showDataWithModel:(PictureModel *)model{
    model.url=[NSString stringWithFormat:@"%@/%@",model.path,model.thumbnails_url];
    [self.ImageView sd_setImageWithURL:[NSURL URLWithString:model.url]];
    self.titleLable.text=[NSString stringWithFormat:@"%@",model.title];
    self.descriptionLabel.text=[NSString stringWithFormat:@"%@",model.description];
    
}


- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
